<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<jsp:include page="/BaseFrame.jsp"></jsp:include>
<html>
  <head>
    <script type="text/javascript">
    var height=window.screen.height; 
	var width=window.screen.width; 
    </script>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Insert title here</title>
	<% 
	int index = 1;
	%>
  </head>
  <body>
	<div>
	 <table border="1">
	   <s:iterator value="list" var="content" step="4">
	   <%if(index++%5 ==0){ %>
	   <tr>
	   <%} %>
	   <td width="25%">
	     <table>
		   <tr>
		     <td>
		       <img alt="picture" src="<s:property value="#content.image"/>">
		     </td>
		   </tr>
		   <tr>
		   	 <td>
		       <s:label><s:property value="#content.content"/></s:label>
		     </td>
		   </tr>
	   	 </table>
	   	</td>
	   	<%if((index-1)%5 ==0){ %>
	   </tr>
	   <%} %>
	   </s:iterator>
	 </table>
    </div>
  </body>
</html>